import request from '@/utils/request'

/**
 * 条件分页查询用户数据
 * @param {*} obj 
 * @returns 
 */
export const getUserListService = (obj) => {
    return request.get('admin/user/page', {
        params: obj
    })
}

/**
 * 批量删除
 * @param {*} ids 
 * @returns 
 */
export const deleteBatch = (ids) => {
    return request.delete('/admin/user', {
        data: ids
    })
}

/**
 * 修改用户状态
 * @param {*} userId 
 * @param {*} status 
 * @returns 
 */
export const updateStatus = (userId,status) => {
    return request.put('admin/user/status', {
        userId: userId,
        status: status
    })
}